﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using QldtSdh.Utils;
namespace QldtSdh.DAL.Models
{
    public partial class HocVien
    {
        [NotMapped]
        public string _GioiTinhStr
        {
            get
            {
                return GioiTinh ? "Nam" : "Nữ";
            }
        }
        /// <summary>
        /// Điểm trung bình chung tích lũy
        /// </summary>
        [NotMapped]
        public double? _DiemTichLuy
        {
            get;
            set;
        }
        /// <summary>
        /// Tổng số tín chỉ tích lũy
        /// </summary>
        [NotMapped]
        public int? _TinChiTichLuy
        {
            get;
            set;
        }
        [NotMapped]
        public bool _IsSelected
        {
            get;
            set;
        }
        [NotMapped]
        public string _TinhTrang
        {
            get;
            set;
        }
        [NotMapped]
        public bool _CoChungChi
        {
            get
            {
                if (LoaiChungChi.IsNullOrEmpty())
                    return false;
                else
                    return true;
            }
        }
        [NotMapped]
        public decimal _DiemQTHT { get; set; }
        [NotMapped]
        public decimal _DiemThi { get; set; }

        public string _Description { get { return string.Format("[{0}] - {1} {2}", MaHocVien, HoDem, Ten); } }
    }
}
